// live.js
import request from '@/utils/request';

export function getAllActiveStreams() {
    return request({
        url: '/live/getAllActiveStreams',
        method: 'get'
    });
}

export function getAllStreams() {
    return request({
        url: '/live/getAllStreams',
        method: 'get'
    });
}

export function addLiveStream(streamData) {
    return request({
        url: '/live/add',
        method: 'post',
        data: streamData
    });
}


export function updateLiveStreamUrl(id, updatedData) {
    return request({
        url: `/live/update`,
        method: 'put',
        data: { id, ...updatedData }
    });
}


